{template header.html}
<script type="text/javascript">
$(function() {
	SwapTab({$page});
	{if $error}
	art.dialog.tips('{$error}', 3);
	{/if}
});
function dr_select_all() {
    $("#dr_synid").find("option").attr("selected", "selected");
}
</script>
<form action="" method="post" name="myform" id="myform">
<input name="page" id="page" type="hidden" value="{$page}" />
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}<span>|</span><a href="{SYS_HELP_URL}19.html" target="_blank"><em>{lang('help')}</em></a>
	</div>
	<div class="bk10"></div>
	<div class="table-list col-tab">
		<ul class="tabBut cu-li">
			<li onclick="SwapTab(0)">{lang('html-083')}</li>
			<li onclick="SwapTab(1)">{lang('html-272')}</li>
			{if MEMBER_OPEN_SPACE}
            <li onclick="SwapTab(2)">{lang('html-691')}</li>
            <li onclick="SwapTab(3)">{lang('html-264')}</li>
            {/if}
            {if $data.id}<li onclick="SwapTab({php echo MEMBER_OPEN_SPACE ? 4 : 2;})">{lang('html-219')}</li>{/if}
		</ul>
		<div class="contentList pad-10">
			<div id="cnt_0" style="display:none" class="dr_hide">
				<table width="100%" class="table_form">
				<tr>
					<th width="200"><font color="red">*</font>&nbsp;{lang('html-026')}： </th>
					<td><input class="input-text" type="text" name="data[name]" value="{$data.name}" id="dr_name" size="12" />
					<div class="onShow">{lang('html-027')}</div>
					</td>
				</tr>
				<tr>
					<th>{lang('html-268')}： </th>
					<td>
					<input class="input-text" type="text" name="data[price]" value="{intval($data.price)}" size="12" />
					<div class="onShow">{lang('html-273')}</div>
					</td>
				</tr>
				<tr>
					<th>{lang('html-274')}： </th>
					<td>
					<input type="radio" name="data[unit]" value="1" {dr_set_radio('unit', $data.unit, '1', TRUE)} />&nbsp;<label>{SITE_SCORE}</label>
					&nbsp;&nbsp;&nbsp;
					<input type="radio" name="data[unit]" value="2" {dr_set_radio('unit', $data.unit, '2')} />&nbsp;<label>{SITE_MONEY}</label>
					</td>
				</tr>
				<tr>
					<th>{lang('html-275')}： </th>
					<td>
					<input type="radio" name="data[limit]" value="1" {dr_set_radio('limit', $data.limit, '1', TRUE)} />&nbsp;<label>{lang('html-276')}</label>
					&nbsp;&nbsp;&nbsp;
					<input type="radio" name="data[limit]" value="2" {dr_set_radio('limit', $data.limit, '2')} />&nbsp;<label>{lang('html-277')}</label>
					&nbsp;&nbsp;&nbsp;
					<input type="radio" name="data[limit]" value="3" {dr_set_radio('limit', $data.limit, '3')} />&nbsp;<label>{lang('html-278')}</label>
					&nbsp;&nbsp;&nbsp;
					<input type="radio" name="data[limit]" value="4" {dr_set_radio('limit', $data.limit, '4')} />&nbsp;<label>{lang('html-486')}</label>
					</td>
				</tr>
				<tr>
					<th><font color="red">*</font>&nbsp;{lang('html-360')}： </th>
					<td>
					<select name="data[overdue]">
                    {loop $overdue $t}
                    <option{if $t.id==$data.overdue} selected=""{/if} value="{$t.id}">{$t.name}</option>
                    {/loop}
                    </select>
					<div class="onShow">{lang('html-361')}</div>
					</td>
				</tr>
				<tr>
					<th>{lang('html-269')}： </th>
					<td>
					<input type="radio" name="data[allowapply]" value="1" {dr_set_radio('allowapply', $data.allowapply, '1', TRUE)} />&nbsp;<label>{lang('yes')}</label>
					&nbsp;&nbsp;&nbsp;
					<input type="radio" name="data[allowapply]" value="0" {dr_set_radio('allowapply', $data.allowapply, '0')} />&nbsp;<label>{lang('no')}</label>&nbsp;
					<div class="onShow">{lang('html-279')}</div>
					</td>
				</tr>
                <tr>
					<th><font color="red">*</font>&nbsp;{lang('html-097')}： </th>
					<td>
					<select name="data[theme]">
                    <option value="default"> -- </option>
                    {loop $theme $t}
                    <option{if $t==$data.theme} selected=""{/if} value="{$t}">{$t}</option>
                    {/loop}
                    </select>
					<div class="onShow">{lang('html-617')}</div>
					</td>
				</tr>
               <tr>
					<th><font color="red">*</font>&nbsp;{lang('html-099')}： </th>
					<td>
					<select name="data[template]">
                    <option value="default"> -- </option>
                    {loop $mtemplate $t}
                    <option{if $t==$data.template} selected=""{/if} value="{$t}">{$t}</option>
                    {/loop}
                    </select>
					<div class="onShow">{lang('html-618')}</div>
					</td>
				</tr>
				</table>
			</div>
			<div id="cnt_1" style="display:none" class="dr_hide">
				<table width="100%" class="table_form">
				{list action=cache name=MEMBER.field}
				<tr>
					<th width="200">&nbsp;{$t.name}： </th>
					<td><input type="checkbox" {if @in_array($t.fieldname, $data.allowfield)}checked="checked"{/if} value="{$t.fieldname}"  name="data[allowfield][]" />&nbsp;&nbsp;<label>{lang('html-314')}</label></td>
				</tr>
				{/list}
				<tr class="dr_border_none">
					<th>&nbsp;</th>
					<td><font color="gray">{lang('html-280')}</font></td>
				</tr>
				</table>
			</div>
            {if MEMBER_OPEN_SPACE}
            <div id="cnt_2" style="display:none" class="dr_hide">
                <table width="100%" class="table_form">
                    {list action=cache name=MEMBER.spacefield}
                    <tr>
                        <th width="200">&nbsp;{$t.name}： </th>
                        <td><input type="checkbox" {if $t.fieldname == 'name'} disabled="disabled" checked="checked"{else}{if @in_array($t.fieldname, $data.spacefield)}checked="checked"{/if}{/if} value="{$t.fieldname}"  name="data[spacefield][]" />&nbsp;&nbsp;<label>{lang('html-314')}</label></td>
                    </tr>
                    {/list}
                    <tr class="dr_border_none">
                        <th>&nbsp;</th>
                        <td><font color="gray">{lang('html-695')}</font></td>
                    </tr>
                </table>
            </div>
            <div id="cnt_3" style="display:none" class="dr_hide">
                <table width="100%" class="table_form">
                    <tr>
                        <th width="200">{lang('html-229')}： </th>
                        <td>
                            <input type="radio" name="data[allowspace]" value="1" {dr_set_radio('allowspace', $data.allowspace, '1', TRUE)} />&nbsp;<label>{lang('yes')}</label>
                            &nbsp;&nbsp;&nbsp;
                            <input type="radio" name="data[allowspace]" value="0" {dr_set_radio('allowspace', $data.allowspace, '0')} />&nbsp;<label>{lang('no')}</label>&nbsp;
                            <div class="onShow">{lang('html-255')}</div>
                        </td>
                    </tr>
                    <tr>
                        <th width="200">{lang('html-779')}： </th>
                        <td>
                            <input type="radio" name="data[spacedomain]" value="1" {dr_set_radio('spacedomain', $data.spacedomain, '1')} />&nbsp;<label>{lang('yes')}</label>
                            &nbsp;&nbsp;&nbsp;
                            <input type="radio" name="data[spacedomain]" value="0" {dr_set_radio('spacedomain', $data.spacedomain, '0', TRUE)} />&nbsp;<label>{lang('no')}</label>&nbsp;
                            <div class="onShow"><a href="http://help.dayrui.com/193.html" style="color:blue !important" target="_blank">{lang('html-780')}</a></div>
                        </td>
                    </tr>
                    <tr class="dr_border_none">
                        <th>{lang('html-755')}： </th>
                        <td>
                            <select name="data[spacetemplate]">
                                <option value="default"> -- </option>
                                {loop $space $t}
                                <option{if $t==$data.spacetemplate} selected=""{/if} value="{$t}">{$t}</option>
                                {/loop}
                            </select>
                            <div class="onShow">{lang('html-756')}</div>
                        </td>
                    </tr>
                </table>
            </div>
            {/if}
            {if $data.id}
            <div id="cnt_{php echo MEMBER_OPEN_SPACE ? 4 : 2;}" style="display:none" class="dr_hide">
                <table width="100%" class="table_form">
                    <tr>
                        <th>{lang('html-706')}：</th>
                        <td>
                            <select id="dr_synid" name="synid[]" multiple style="width: 150px; height: 180px;">
                                {loop $group $t}
                                {if $data.id!=$t.id}
                                <option value="{$t.id}">{$t.name}</option>
                                {/if}
                                {/loop}
                            </select>
                            <input value="{lang('html-605')}" type="button" onclick="dr_select_all()" name="button" class="button" />
                            <br>
                            <font color="gray">{lang('html-707')}</font></td>
                    </tr>
                    <tr>
                        <th width="200">{lang('html-023')}：</th>
                        <td>
                            <label>{lang('html-097')}</label>&nbsp;<input name="syn[]" type="checkbox" value="1">&nbsp;&nbsp;
                            <label>{lang('html-099')}</label>&nbsp;<input name="syn[]" type="checkbox" value="2">&nbsp;&nbsp;
                            <label>{lang('html-272')}</label>&nbsp;<input name="syn[]" type="checkbox" value="3">&nbsp;&nbsp;
                            {if MEMBER_OPEN_SPACE}
                            <label>{lang('html-691')}</label>&nbsp;<input name="syn[]" type="checkbox" value="4">&nbsp;&nbsp;
                            <label>{lang('html-229')}</label>&nbsp;<input name="syn[]" type="checkbox" value="5">&nbsp;&nbsp;
                            {/if}
                        </td>
                    </tr>
                </table>
            </div>
            {/if}
			<table width="100%" class="table_form">
			<tr>
				<th width="200" style="border:none;">&nbsp;</th>
				<td>
				<input class="button" type="submit" name="submit" value="{lang('submit')}" />
				</td>
			</tr>
			</table>
		</div>
	</div>
</div>
</form>
{template footer.html}